﻿/// <summary>
/// 战斗结果判定
/// </summary>
/// <summary>
/// battle result judgment 
/// </summary>
public class AchievedBattleResultChecker : BattleResultChecker
{
    public override bool battleFinished
    {
        get
        {
            return m_MBattleController.win || m_MBattleController.fail;
        }
    }


    /// <summary>
    /// get the battle result data
    /// </summary>
    /// <returns></returns>
    public override BattleResult GetBattleResult()
    {
        BattleResult result = new BattleResult();

        result.level = this.m_MBattleController.level;
        result.mapId = this.m_MBattleController.mapId;

        result.win = m_MBattleController.win;

        int baseScore = 20;

        result.score = baseScore + m_MBattleController.me.score;
        result.star = 3;

        return result;
    }
}